package cn.xiaoyangh.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 封装总条数和当前页数据
 */
@Data
public class PageList<T> {
    private Integer count = 0;
    private List<T> list = new ArrayList<>();

    public PageList() {
    }

    public PageList(Integer count, List<T> list) {
        this.count = count;
        this.list = list;
    }
}
